{include file="./headStart.tpl"}
<script type="text/javascript">
$(function() {
  enable_cb();
  $("input:checkbox").click(enable_cb);
});

function enable_cb() {
  if (this.checked) {
    $("input:checkbox").attr("disabled", true);
    $(this).attr("disabled", false);
  } else {
    $("input:checkbox").attr("disabled", false);
  }
}
function checkTechCmp(theObj)
{
  var checkedId   = $(theObj).val();
  var checkStatus = $(theObj).prev().val();
  
  if(checkStatus == 'Y')
  {
    $("#checkBtn").hide("slow");
  }
  else
  {
    $("#checkBtn").show("slow");
  }
}
function checkTechNew(theObj)
{
  var checkedId   = $(theObj).val();
  var checkStatus = $(theObj).prev().val();
  
  if(checkStatus == 'Y')
  {
    $("#checkBtnNew").hide("slow");
  }
  else
  {
    $("#checkBtnNew").show("slow");
  }
}
function checkTechOther(theObj)
{
  var checkedId   = $(theObj).val();
  var checkStatus = $(theObj).prev().val();
  
  if(checkStatus == 'Y')
  {
    $("#checkBtnOther").hide("slow");
  }
  else
  {
    $("#checkBtnOther").show("slow");
  }
}
</script>
{include file="./headEnd.tpl"}
<form action="{$smarty.server.PHP_SELF}" name="form" method="POST">
<center><font style="font-size: 16px"><b>Pending Service List</b></font></center><br/>
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td class="table1" align="center" colspan="11"><font style="font-size: 16px"><b> Complaint List </b></font></td>
</tr>
<tr>
  <td class="table1" align="center"><B>Record Edit</td>
  <td class="table1" align='center'><B>T A Edit</td>
	<td class="table1" align='center'><B>Sr No.</td>
	<td class="table1" align='center'><B>Customer</td>
	<td class="table1" align='center'><B>System </td>
	<td class="table1" align='center'><B>Complaint Date</td>
	<td class="table1" align='center'><B>Target Date </td>
	<td class="table1" align='center'><B>Description </td>
	<td class="table1" align='center'><B>Important Point</td>	
	<td class="table1" align='center'><B>Type Of Call</td>
	<td class="table1" align='center'><B>Remarks</td>
</tr>
{section name="sec" loop=$complainCallDetailArray}
<tr>
	<td class="table3" align="center">
    <a href="complainService.php?complainServiceId={$complainCallDetailArray[sec].complainServiceId}" class="link"><img src="./images/b_edit.png" border="0" width="15" height="15"></a>
  </td>
  {if $complainCallDetailArray[sec].techAllocated == "Y"}
	  <td class="table3" align="center">
      <a href="techAlloEdit.php?complainServiceId={$complainCallDetailArray[sec].complainServiceId}" class="link"><img src="./images/b_edit.png" border="0" width="15" height="15"></a>
    </td>
  {else}
    <td class="table3" align="center" width="20px"> - </td>
  {/if}
  <td class="table3" align="center">{$smarty.section.sec.rownum}</td>
  <td class="table3" align="center"> {$complainCallDetailArray[sec].companyName}</td>
  <td class="table3" align="left" NOWRAP> {$complainCallDetailArray[sec].categoryName}</td>
  <td class="table3" align="center" NOWRAP> {$complainCallDetailArray[sec].complainDate}</td>
  <td class="table3" align="center" NOWRAP> {$complainCallDetailArray[sec].targetedDate}</td>
  <td class="table3" align="left"> {$complainCallDetailArray[sec].description}</td>
  <td class="table3" align="left"> {$complainCallDetailArray[sec].importantPoint}</td>
  <td class="table3" align="left"> {$complainCallDetailArray[sec].type}</td>
  <td class="table3" align="left"> {$complainCallDetailArray[sec].remarks}</td>
  {sectionelse}
    <tr><td align="center" colspan="6"> <h2><font color="red"><b>{$msg}</b></font></h2></td></tr>
  {/section}
</tr>
</table>
</form>
<!--table for New installetion List-->
<br /><br /><br />
<form action="{$smarty.server.PHP_SELF}" name="form1" method="POST">
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td class="table1" align="center" colspan="7"><font style="font-size: 16px"><b> New Installation List </b></font></td>
</tr>
<tr>
  <td class="table1" align='center'><B>Record Edit</td>
  <td class="table1" align='center'><B>T A Edit</td>
	<td class="table1" align='center'><B>Sr No. </td>	
  <td class="table1" align='center'><B>Date </td>	
	<td class="table1" align='center'><B>Customer </td>
	<td class="table1" align='center'><B>Categary </td>
	<td class="table1" align='center'><B>Description </td>
</tr>
{assign var="srNo" value="1"}<!--display variable for sr No-->
{section name="sec2" loop=$newInstallDetailArray}
<tr>
	<td class="table3" align="center">
		{if $newInstallDetailArray[sec2].display == 1}
      <a href="newInstallation.php?newinstallationMasterId={$newInstallDetailArray[sec2].newinstallationMasterId}" class="link"><img src="./images/b_edit.png" border="0" width="15" height="15"></a>
    {else}
	    &nbsp;
	  {/if}
  </td>
	{if $newInstallDetailArray[sec2].techAllocated == "Y"}
	  {if $newInstallDetailArray[sec2].display == 1}
      <td class="table3" align="center" width="20px">
      	<a href="techAlloEdit.php?newInstallationMasterId={$newInstallDetailArray[sec2].newinstallationMasterId}" class="link"><img src="./images/b_edit.png" border="0" width="15" height="15"></td>
    {else}
	    <td class="table3">&nbsp;</td>
	  {/if}
  {else}
    <td class="table3" align="center" width="20px">{if $newInstallDetailArray[sec2].display == 1} - {else} &nbsp; {/if}</td>
  {/if}
	{if $newInstallDetailArray[sec2].display == 1}
	  <td class="table3" align="center">{$srNo++}</td>
	  <td class="table3" align="left" NOWRAP> {$newInstallDetailArray[sec2].installationDate}</td>
	  <td class="table3" align="center"> {$newInstallDetailArray[sec2].companyName}</td>
	{else}
	  <td class="table3">&nbsp;</td>
	  <td class="table3">&nbsp;</td>
	  <td class="table3">&nbsp;</td>	
	{/if}
	<td class="table3" align="left" NOWRAP> {$newInstallDetailArray[sec2].categoryName}</td>
	<td class="table3" align="left"> {$newInstallDetailArray[sec2].description}</td>
	{sectionelse}
	  <tr><td align="center" colspan="6"> <h2><font color="red"><b>{$msg}</b></font></h2></td></tr>
	{/section}
</tr>
</table>
</form>		
<!--table for Demo-->
<br /><br /><br />

<form action="{$smarty.server.PHP_SELF}" name="form2" method="POST">
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr><td class="table1" align="center" colspan="14"><font style="font-size: 16px"><b> Demo List </b></font></td></tr>
<tr>
  <td class="table1" align='center'><B>Record Edit</td>
	<td class="table1" align='center'><B>T A Edit</td>
  <td class="table1" align='center'><B>Sr No. </td>	
  <td class="table1" align='center'><B>Service Type </td>	
	<td class="table1" align='center'><B>Customer </td>
	<td class="table1" align='center'><B>Categary </td>
	<td class="table1" align='center'><B>Complaint Date</td>	
	<td class="table1" align='center'><B>Target Date</td>
	<td class="table1" align='center'><B>Description</td>
	<td class="table1" align='center'><B>Important Point</td>
</tr>
{assign var="srNo" value="1"}<!--display variable for sr No-->
{section name="sec3" loop=$otherArray}
<tr>
	<td class="table3" align="center" width="20px">
  {if $otherArray[sec3].serviceType == "Demo"}
    <a href="demo.php?otherServiceId={$otherArray[sec3].otherServiceId}" class="link"><img src="./images/b_edit.png" border="0" width="15" height="15"></a>
  {elseif $otherArray[sec3].serviceType == "R&D"}
    <a href="rAndD.php?otherServiceId={$otherArray[sec3].otherServiceId}" class="link"><img src="./images/b_edit.png" border="0" width="15" height="15"></a>
  {else}
    <a href="others.php?otherServiceId={$otherArray[sec3].otherServiceId}" class="link"><img src="./images/b_edit.png" border="0" width="15" height="15"></a>
  {/if}
  </td>
	{if $otherArray[sec3].techAllocated == "Y"}
    <td class="table3" align="center" width="20px">
    	{if $otherArray[sec3].serviceType == "Demo"}
    	  <a href="techAlloEdit.php?otherServiceId={$otherArray[sec3].otherServiceId}" class="link"><img src="./images/b_edit.png" height="15" width="15"></td>
    	{elseif $otherArray[sec3].serviceType == "R&D"}
    	  <a href="techAlloEdit.php?otherServiceId={$otherArray[sec3].otherServiceId}" class="link"><img src="./images/b_edit.png" height="15" width="15"></td>
    	{else}
    	  <a href="techAlloEdit.php?otherServiceId={$otherArray[sec3].otherServiceId}" class="link"><img src="./images/b_edit.png" height="15" width="15"></td>
    	{/if}
  {else}
    <td class="table3" align="center" width="20px"> - </td>
  {/if}
	<td class="table3" align="center">{$srNo++}</td>
  <td class="table3" align="left">{$otherArray[sec3].serviceType}</td>
  <td class="table3" align="left">{$otherArray[sec3].companyName}</td>
	<td class="table3" align="left" NOWRAP>{$otherArray[sec3].categoryName}</td>
	<td class="table3" align="center" NOWRAP>{$otherArray[sec3].complainDate}</td>
	<td class="table3" align="center" NOWRAP>{$otherArray[sec3].targetedDate}</td>
	<td class="table3" align="left">{$otherArray[sec3].description}</td>
	<td class="table3" align="left">{$otherArray[sec3].importantPoint}</td>
	{sectionelse}
	  <tr><td align="center" colspan="6"> <h2><font color="red"><b>{$msg}</b></font></h2></td></tr>
	{/section}
</tr>
</table>
</form>		
{include file="footer.tpl"}